//
//  HBQShoppingCartViewController.m
//  HelloBeeQuick
//
//  Created by LiYiLin on 16/8/18.
//  Copyright © 2016年 LiYiLin. All rights reserved.
//

#import "HBQShoppingCartViewController.h"

@interface HBQShoppingCartViewController ()

@end

@implementation HBQShoppingCartViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setup_UI];
}

- (void)setup_UI {
    self.title = @"购物车";
    [self.view setBackgroundColor:KTHEMES];
    
    UIButton * button = [[UIButton alloc] init];
    
    [button setTitle:@"返回" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
    [button.titleLabel setFont:[UIFont systemFontOfSize:15]];
    [button sizeToFit];
    
    [button addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
    
}

- (void)click {
    
    [self dismissViewControllerAnimated:YES completion:nil];

}

@end
